package com.swx.identityservice.mapper;

import com.swx.identityservice.models.ScbpPermission;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author Administrator
 * @version V1.0.0
 * @date 2018/6/3 0003 0:30
 */
public interface ScbpPermissionMapper extends Mapper<ScbpPermission> {

    List<ScbpPermission> getPermissionsAsTree(Object key) throws Exception;
    List<ScbpPermission> getAllPermissions() throws Exception;

    ScbpPermission selectParentExist(String Permission);

}
